select
Type
command
Summary
Selects part of the text of a field, or places the insertion point in a field, or removes the insertion point, or Selects one or more objects.
Syntax
select [{before | after}] {text | <chunk>} of <field>
select empty
select <objectList>
Description
Use the select command to select objects or text in order to change them, or to deselect all objects and text.
If you select text in a field, the field scrolls (if necessary) to show the selected chunk.
Use the select before or select after form to position the insertion point at a particular location in a field.
Use the select empty form to deselect all objects and text. To select an object without deselecting any objects that are already selected, use the selected property instead of the select command.
To select lines in a list field, set the field's hilitedLine property instead of using the select command.
To change the selection in an option menu or combo box use the property instead of the command.
To select text in a field, the field's traversalOn property must be set to true.
Parameters
Name | Type | Description |
---|---|---|
chunk | A chunk expression specifying a portion of the field. | |
field | A field reference. | |
objectList | The objectList consists of one or more object references, separated by the word and. |
Examples
select text of field "output"
select after word 34 of field "output"
select empty
select button "next"
select scrollbar "progress" and graphic "background" and field "output"
Related
command: hilite, focus, select, delete, copy
function: selectedLoc, selectedChunk
glossary: select, insertion point, property, command, object
message: openField, selectionChanged
property: selectGroupedControls
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile